const obj = {
    foo:123,
    get bar(){
        return 'hello'+this.foo;
    },
    getFoo(){
        console.log(`hello`+this.foo)
    }
}
//console.log(Reflect.get(obj,'foo'));
//console.log(Reflect.get(obj,'bar',{foo:250}))
//Reflect.get(obj,'getFoo',{foo:250})();

let obj2 = {
    foo:123,
    set bar(value){
        this.foo = value;
    }
}
Reflect.set(obj2,'bar',456,obj2);
console.log(Reflect.get(obj2,'foo'))